package com.atcper

import scala.Console.println

/**
 * @author : ranzlupup
 * @date : 2023/2/22 08:39
 */
object Scala10_Function {

    def main(args: Array[String]): Unit = {

        def function2(i: Int): Int = {
            i * 2
        }

        def function22(f: (Int) => Int): Int = {
            f(10)
        }

        println(function22(function2))

    }
}
